Optimal. Leaf size=57 \[ -\frac {1}{(b d-a e) (a+b x)}-\frac {e \log (a+b x)}{(b d-a e)^2}+\frac {e \log (d+e x)}{(b d-a e)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {27, 46}
\begin {gather*} -\frac {1}{(a+b x) (b d-a e)}-\frac {e \log (a+b x)}{(b d-a e)^2}+\frac {e \log (d+e x)}{(b d-a e)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 46
Rubi steps
\begin {align*} \int \frac {1}{(d+e x) \left (a^2+2 a b x+b^2 x^2\right )} \, dx &=\int \frac {1}{(a+b x)^2 (d+e x)} \, dx\\ &=\int \left (\frac {b}{(b d-a e) (a+b x)^2}-\frac {b e}{(b d-a e)^2 (a+b x)}+\frac {e^2}{(b d-a e)^2 (d+e x)}\right ) \, dx\\ &=-\frac {1}{(b d-a e) (a+b x)}-\frac {e \log (a+b x)}{(b d-a e)^2}+\frac {e \log (d+e x)}{(b d-a e)^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 53, normalized size = 0.93 \begin {gather*} \frac {-b d+a e-e (a+b x) \log (a+b x)+e (a+b x) \log (d+e x)}{(b d-a e)^2 (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.68, size = 57, normalized size = 1.00
method | result | size |
default | \(\frac {1}{\left (a e -b d \right ) \left (b x +a \right )}-\frac {e \ln \left (b x +a \right )}{\left (a e -b d \right )^{2}}+\frac {e \ln \left (e x +d \right )}{\left (a e -b d \right )^{2}}\) | \(57\) |
risch | \(\frac {1}{\left (a e -b d \right ) \left (b x +a \right )}+\frac {e \ln \left (-e x -d \right )}{a^{2} e^{2}-2 a b d e +b^{2} d^{2}}-\frac {e \ln \left (b x +a \right )}{a^{2} e^{2}-2 a b d e +b^{2} d^{2}}\) | \(86\) |
norman | \(-\frac {b x}{a \left (a e -b d \right ) \left (b x +a \right )}+\frac {e \ln \left (e x +d \right )}{a^{2} e^{2}-2 a b d e +b^{2} d^{2}}-\frac {e \ln \left (b x +a \right )}{a^{2} e^{2}-2 a b d e +b^{2} d^{2}}\) | \(89\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 97, normalized size = 1.70 \begin {gather*} -\frac {e \log \left (b x + a\right )}{b^{2} d^{2} - 2 \, a b d e + a^{2} e^{2}} + \frac {e \log \left (x e + d\right )}{b^{2} d^{2} - 2 \, a b d e + a^{2} e^{2}} - \frac {1}{a b d - a^{2} e + {\left (b^{2} d - a b e\right )} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.45, size = 91, normalized size = 1.60 \begin {gather*} -\frac {{\left (b x + a\right )} e \log \left (b x + a\right ) - {\left (b x + a\right )} e \log \left (x e + d\right ) + b d - a e}{b^{3} d^{2} x + a b^{2} d^{2} + {\left (a^{2} b x + a^{3}\right )} e^{2} - 2 \, {\left (a b^{2} d x + a^{2} b d\right )} e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 233 vs.
\(2 (46) = 92\).
time = 0.43, size = 233, normalized size = 4.09 \begin {gather*} \frac {e \log {\left (x + \frac {- \frac {a^{3} e^{4}}{\left (a e - b d\right )^{2}} + \frac {3 a^{2} b d e^{3}}{\left (a e - b d\right )^{2}} - \frac {3 a b^{2} d^{2} e^{2}}{\left (a e - b d\right )^{2}} + a e^{2} + \frac {b^{3} d^{3} e}{\left (a e - b d\right )^{2}} + b d e}{2 b e^{2}} \right )}}{\left (a e - b d\right )^{2}} - \frac {e \log {\left (x + \frac {\frac {a^{3} e^{4}}{\left (a e - b d\right )^{2}} - \frac {3 a^{2} b d e^{3}}{\left (a e - b d\right )^{2}} + \frac {3 a b^{2} d^{2} e^{2}}{\left (a e - b d\right )^{2}} + a e^{2} - \frac {b^{3} d^{3} e}{\left (a e - b d\right )^{2}} + b d e}{2 b e^{2}} \right )}}{\left (a e - b d\right )^{2}} + \frac {1}{a^{2} e - a b d + x \left (a b e - b^{2} d\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.29, size = 95, normalized size = 1.67 \begin {gather*} -\frac {b e \log \left ({\left | b x + a \right |}\right )}{b^{3} d^{2} - 2 \, a b^{2} d e + a^{2} b e^{2}} + \frac {e^{2} \log \left ({\left | x e + d \right |}\right )}{b^{2} d^{2} e - 2 \, a b d e^{2} + a^{2} e^{3}} - \frac {1}{{\left (b d - a e\right )} {\left (b x + a\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.58, size = 76, normalized size = 1.33 \begin {gather*} \frac {1}{\left (a\,e-b\,d\right )\,\left (a+b\,x\right )}-\frac {2\,e\,\mathrm {atanh}\left (\frac {a^2\,e^2-b^2\,d^2}{{\left (a\,e-b\,d\right )}^2}+\frac {2\,b\,e\,x}{a\,e-b\,d}\right )}{{\left (a\,e-b\,d\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________